home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20000217-20000824 / 000135_news@columbia.edu _Tue Mar 21 19:03:54 2000.msg < prev    next >
Internet Message Format  |  2000-08-23  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id TAA02025
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 21 Mar 2000 19:03:53 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id SAA02414
  7.     for kermit.misc@watsun.cc.columbia.edu; Tue, 21 Mar 2000 18:43:25 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: K95 "title"
  11. Date: 21 Mar 2000 23:43:24 GMT
  12. Organization: Columbia University
  13. Message-ID: <8b91es$2bc$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <8b8tsg$lji$1@samba.rahul.net>,
  17. Clarence Dold  <dold@rahul.net> wrote:
  18. : T.E.Dickey <dickey@shell.clark.net> wrote:
  19. : : as Jeffrey notes, kermit recognizes the standard form of this:
  20. : :       echo "]0;`hostname` $1 \"
  21. : I took Jeffrey's note:
  22. :   OSC 0 ; <title> ST 
  23. : and tried to make sense of what needed to be sent.
  24. : The closest I came was an ASCII chart, which almost agreed with
  25. : T.E.Dickey's note, except that Jeffrey's seems to be eight bit,
  26. : T.E.Dickey's seems to be seven bit mask of the same characters.
  27. : so, T.E. has the same line as what I started with, except that his ends
  28. : with ^[\, where mine ends with ^G.
  29. : I can't parse T.E's line.  echo hangs waiting for the escape sequence to
  30. : finish.  If I manually key in ESC-^G, I get the text on my Xterm title bar.
  31. : I think the ^[\ resembles what the ASCII chart says should be sent, 
  32. : but I think either the shell or echo is interpreting it as \" escaping the
  33. : closing quote.  I've sprinkled some extra \ in with no effect, and I still
  34. : have no reference to the X3.64 to decipher Jeffrey's string.
  35. : http://www.ansi.org leads to a pay-per-view screen.
  36. OSC and SC are C1 controls, which can be expressed as 8-bit bytes (in the
  37. 8-bit environment) or ESC followed by the C1 byte without its 8th bit.  So:
  38.  
  39.           8-bit          7-bit
  40.   OSC     0x9D           ESC ]
  41.   ST      0x9C           ESC \
  42.  
  43. For example, if you want to set the title from C-Kermit on the host:
  44.  
  45.   C-Kermit> echo \27]0;This Is My Window Title\27\\
  46.  
  47. Here, \27 becomes ESC and \\ becomes \.
  48.  
  49. - Frank